/*    */
package com.liang.nansheng.common.enums;

/*    */
/*    */ public enum BaseRoleEnum
        /*    */ {
    /* 18 */   NS_MANAGE_BASE_ROLE("ns-manage-base", "南生运营"),
    /*    */
    /* 22 */   NS_BBS_BASE_ROLE("ns-bbs-base", "南生论坛");
    /*    */
    /*    */   private final String code;
    /*    */   private final String name;

    /*    */
    /* 28 */
    public static BaseRoleEnum from(String code) {
        for (BaseRoleEnum typeEnum : values()) {
            /* 29 */
            if (typeEnum.code.equals(code)) {
                /* 30 */
                return typeEnum;
                /*    */
            }
            /*    */
        }
        /* 33 */
        return null;
    }

    /*    */
    /*    */
    public static String to(BaseRoleEnum typeEnum)
    /*    */ {
        /* 37 */
        if (typeEnum == null) {
            /* 38 */
            return null;
            /*    */
        }
        /* 40 */
        return typeEnum.code;
        /*    */
    }

    /*    */
    /*    */
    public String getCode()
    /*    */ {
        /* 24 */
        return this.code;
    }

    /* 25 */
    public String getName() {
        return this.name;
    }

    /*    */
    /*    */
    /*    */
    public String toString()
    /*    */ {
        /* 12 */
        return "BaseRoleEnum." + name() + "(code=" + getCode() + ", name=" + getName() + ")";
    }

    /* 13 */
    private BaseRoleEnum(String code, String name) {
        this.code = code;
        this.name = name;
        /*    */
    }
    /*    */
}

/* Location:           C:\maven\maven3.5\maven3.5\repositor\io\github\maliangnansheng\nansheng-common\3.3.4\nansheng-common-3.3.4.jar
 * Qualified Name:     com.liang.nansheng.common.enums.BaseRoleEnum
 * JD-Core Version:    0.6.2
 */